package com.example.test2.entity;

import com.google.gson.annotations.SerializedName;

public class TranslationResponse {
    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("result")
    private Result result;

    public TranslationResponse() {
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public Result getResult() {
        return result;
    }

    public static class Result {
        @SerializedName("targetText")
        private String targetText;
        @SerializedName("sourceText")
        private String sourceText;

        public String getTargetText() {
            return targetText;
        }

        public String getSourceText() {
            return sourceText;
        }

        public void setSourceText(String sourceText) {
            this.sourceText = sourceText;
        }
    }
}